package jdl.databaseObjects;

public class Table extends DbObject {
	private FieldCollection fieldCollection;

	public Table(String name) {
		super(name);
		fieldCollection = new FieldCollection(this);
	}

	public FieldCollection getFieldCollection() {
		return fieldCollection;
	}

	public void addField(DbField field) throws ObjectAlreadyExistsException {
		fieldCollection.add(field);
	}
}
